package com.hfy.model.po.user.post;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 韩
 * @since 2024-11-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("post")
public class PostPo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 帖子id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发帖人的头像
     */
    private String avatar;

    /**
     * 发帖人的昵称
     */
    private String nickname;

    /**
     * 发帖人的账号
     */
    private String account;

    /**
     * 话题id
     */
    private Integer topicId;

    /**
     * 0代表实名发布，1代表匿名发布
     */
    private Boolean isNameless;

    /**
     * 发帖时间
     */
    private LocalDateTime createTime;

    /**
     * 0代表没删，1代表删了
     */
    private Boolean isDie;
}
